package com.zhang.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhang.backend.entity.FamilyTree;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FamilyTreeMapper extends BaseMapper<FamilyTree> {
    // BaseMapper provides all the necessary basic methods.

    // Example of a custom method to find a family by either spouse.
    /*
    @Select("SELECT * FROM Families WHERE HusbandID = #{personId} OR WifeID = #{personId}")
    FamilyTree findBySpouseId(Long personId);
    */
}